import Vue from 'vue'
import App from './App.vue'
//导入bootstrap
import 'bootstrap/dist/css/bootstrap.min.css'

Vue.config.productionTip = false

// 导入axios 添加到vue的原型对象上
import axios from 'axios'
// 基础地址
axios.defaults.baseURL = 'http://localhost:3000/'
Vue.prototype.$axios = axios
// 引入moment
import moment from 'moment'
Vue.filter('dispose', (val) => {
  return moment(new Date(val)).format('YYYY-MM-DD hh:mm:ss')
})
//引进router
import router from './router'
//挂载
new Vue({
  render: h => h(App),
  router
}).$mount('#app')